﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace ProjetoFinal
{
    public abstract class Fruit
    {
        Texture2D texture;
        public  Rectangle rect;
        string nameTexture;

        public Fruit(Rectangle rect, string nameTexture)
        {
            this.rect = rect;
            this.nameTexture = nameTexture;
        
        }

        public void LoadContent(ContentManager content)
        {
            texture = content.Load<Texture2D>(nameTexture);
        }


        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, rect, Color.White);
        }
    }
}
